<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>prencar: D:/Workspace/Arduino/prencar/StateMaschine.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="prencar.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">prencar
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_state_maschine_8h.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">D:/Workspace/Arduino/prencar/StateMaschine.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_state_maschine_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef StateMaschine_h</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define StateMaschine_h</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;Arduino.h&quot;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="_communication_8h.html">Communication.h</a>&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;<a class="code" href="_configuration_8h.html">Configuration.h</a>&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;<a class="code" href="_line_follow_8h.html">LineFollow.h</a>&quot;</span>
<a name="l00008"></a>00008 
<a name="l00012"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8">00012</a> <span class="keyword">enum</span> <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8">TParcoursState</a>{ 
<a name="l00013"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a3dcefcfc73c46cd08fedd1d3c0dbaad1">00013</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a3dcefcfc73c46cd08fedd1d3c0dbaad1">notStarted</a>,
<a name="l00014"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a96474cef925f487adb48d8db38ee3455">00014</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a96474cef925f487adb48d8db38ee3455">followingFirstLine</a>,
<a name="l00015"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a8e86865de2ed193e0b3a38fdfe7bd52a">00015</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a8e86865de2ed193e0b3a38fdfe7bd52a">firstTurn</a>,
<a name="l00016"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8abdec259af1c38a7275c56d3e3a00430b">00016</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8abdec259af1c38a7275c56d3e3a00430b">followingSecondLine</a>,
<a name="l00017"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a2f8eb7f135d44d0a27d117159480d80f">00017</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a2f8eb7f135d44d0a27d117159480d80f">secondTurn</a>,
<a name="l00018"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a4843e80df3f3ff6711be6e75a66a2aee">00018</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8a4843e80df3f3ff6711be6e75a66a2aee">followingThirdLineToCube</a>,
<a name="l00019"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8ae0dc916c0e29132e7162d68bfd586d1f">00019</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8ae0dc916c0e29132e7162d68bfd586d1f">cubeApproach</a>,
<a name="l00020"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8ad60f33d823c837c39f2b77eb289b35a3">00020</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8ad60f33d823c837c39f2b77eb289b35a3">liftCube</a>,
<a name="l00021"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8aba2a7667be1c205c46189759aa4f6377">00021</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8aba2a7667be1c205c46189759aa4f6377">moveBackToLine</a>,
<a name="l00022"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8ac5ddb79d1c7997a726b2a4a1d94d1382">00022</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8ac5ddb79d1c7997a726b2a4a1d94d1382">followingThirdLineToFinish</a>,
<a name="l00023"></a><a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8aaf38e35232eb6728664f98c8110d11a4">00023</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8aaf38e35232eb6728664f98c8110d11a4">finished</a>
<a name="l00024"></a>00024 };
<a name="l00025"></a>00025 
<a name="l00026"></a><a class="code" href="class_state_maschine.html">00026</a> <span class="keyword">class </span><a class="code" href="class_state_maschine.html">StateMaschine</a>
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028 <span class="keyword">private</span>:
<a name="l00029"></a>00029   <a class="code" href="class_state_maschine.html#a869746d152d0a38b8d6142da3b420e85">StateMaschine</a>();
<a name="l00030"></a><a class="code" href="class_state_maschine.html#ae63367f6117a93b862973b7756ce515c">00030</a>   <span class="keyword">static</span> <a class="code" href="class_state_maschine.html">StateMaschine</a> <a class="code" href="class_state_maschine.html#ae63367f6117a93b862973b7756ce515c" title="Static reference to the singleton object.">_instance</a>;
<a name="l00031"></a><a class="code" href="class_state_maschine.html#a9c60433a0d4dba03bfe5422c0896b4ba">00031</a>   <span class="keyword">static</span> <span class="keywordtype">boolean</span> <a class="code" href="class_state_maschine.html#a9c60433a0d4dba03bfe5422c0896b4ba">_instanceCreated</a>;
<a name="l00032"></a>00032   <span class="keywordtype">void</span> <a class="code" href="class_state_maschine.html#acdadfde97fc8449c816c1b489e2f4a22">begin</a>();
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="class_state_maschine.html#a375a5c409935687eab5d7185c25b2e97">00034</a>   <a class="code" href="class_communication.html">Communication</a>* <a class="code" href="class_state_maschine.html#a375a5c409935687eab5d7185c25b2e97" title="The reference to the serial communication class.">_com</a>; 
<a name="l00035"></a><a class="code" href="class_state_maschine.html#a1739f27286f50fbc99a6212c029c79d5">00035</a>   <a class="code" href="class_configuration.html">Configuration</a>* <a class="code" href="class_state_maschine.html#a1739f27286f50fbc99a6212c029c79d5" title="The reference to the configuration class.">_conf</a>; 
<a name="l00036"></a><a class="code" href="class_state_maschine.html#a91050d9a782c56bbceb4f51255707685">00036</a>   <a class="code" href="class_move.html">Move</a>* <a class="code" href="class_state_maschine.html#a91050d9a782c56bbceb4f51255707685" title="The reference to the move class.">_move</a>; 
<a name="l00037"></a>00037 
<a name="l00038"></a><a class="code" href="class_state_maschine.html#a3307f4f89ffd7ebb3faa55467c32a71d">00038</a>   <a class="code" href="class_line_follow.html">LineFollow</a> <a class="code" href="class_state_maschine.html#a3307f4f89ffd7ebb3faa55467c32a71d">lineFollow</a>;
<a name="l00039"></a>00039 
<a name="l00040"></a>00040   <span class="keywordtype">void</span> <a class="code" href="class_state_maschine.html#a5551d00a5224f595833b75969c2ca64a">checkCommands</a>();
<a name="l00041"></a>00041   <span class="keywordtype">void</span> <a class="code" href="class_state_maschine.html#a5b9f3dfb795afbb28c1beeaa6f6512a4">changeState</a>(<a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8">TParcoursState</a> newState);
<a name="l00042"></a>00042 <span class="keyword">public</span>:
<a name="l00043"></a>00043   <span class="keyword">static</span> <a class="code" href="class_state_maschine.html">StateMaschine</a>* <a class="code" href="class_state_maschine.html#a908a6b51448036bc23a7cd76acfcfbe0">getInstance</a>();
<a name="l00044"></a><a class="code" href="class_state_maschine.html#adbdb287052ba80eb22fd4a910edc0115">00044</a>   <a class="code" href="_state_maschine_8h.html#ad5f3c64cf1a6afd0af12270f4a539ce8">TParcoursState</a> <a class="code" href="class_state_maschine.html#adbdb287052ba80eb22fd4a910edc0115">parcoursState</a>;
<a name="l00045"></a>00045   <span class="keywordtype">void</span> <a class="code" href="class_state_maschine.html#a1095131aa8e6e9537f481b5f425395e2">doJob</a>();
<a name="l00046"></a>00046   <span class="keywordtype">void</span> <a class="code" href="class_state_maschine.html#aaca597f41ba735fce3ef0eb06e4fda18">startParcours</a>();
<a name="l00047"></a>00047   <span class="keywordtype">void</span> <a class="code" href="class_state_maschine.html#ae028d25d4b664d805e0f516a49cfdb23">stopParcours</a>();
<a name="l00048"></a>00048 };
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_state_maschine_8h.html">StateMaschine.h</a>      </li>

    <li class="footer">Generated on Tue Apr 3 2012 18:43:12 for prencar by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
